using EasySolutionForAll.Models;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;

namespace EasySolutionForAll.Migrations
{
    using System;
    using System.Data.Entity;
    using System.Data.Entity.Migrations;
    using System.Linq;

    internal sealed class Configuration : DbMigrationsConfiguration<EasySolutionForAll.Models.ApplicationDbContext>
    {
        public Configuration()
        {
            AutomaticMigrationsEnabled = true;
            ContextKey = "EasySolutionForAll.Models.ApplicationDbContext";
        }

        protected override void Seed(EasySolutionForAll.Models.ApplicationDbContext context)
        {
            //  //This method will be called after migrating to the latest version.

            //  //You can use the DbSet<T>.AddOrUpdate() helper extension method 
            //  //to avoid creating duplicate seed data. E.g.

            //var manager = new UserManager<ApplicationUser>(
            //new UserStore<ApplicationUser>(
            //    new ApplicationDbContext()));
            //var user = new ApplicationUser()
            //{
            //    UserName = "divyang_25"
            //};
            //manager.Create(user,"Yahoo@123");
        }
    }
}
